import 'package:flutter/cupertino.dart';

class ViewModel extends ChangeNotifier {
  int _count = 0;
  int get count => _count;
  set count(int value) {
    if (_count != value) {
      _count = value;
      notifyListeners();
    }
  }

  String _test = '我是测试文本';
  String get test => _test;
  set test(String value) {
    if (_test != value) {
      _test = value;
      notifyListeners();
    }
  }
}
